package cn.thornbird.orgsync.model.feishu;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UserId extends Response {

    @JsonProperty("data")
    private UserContactInfoData data;


    @Data
    public static class UserContactInfoData {

        @JsonProperty("user_list")
        private List<UserContactInfo> userList;

    }


    @Data
    public static class UserContactInfo {

        @JsonProperty("user_id")
        private String userId;

        @JsonProperty("email")
        private String email;

        @JsonProperty("mobile")
        private String mobile;

        @JsonProperty("status")
        private UserList.UserStatus status;

    }

}
